﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>

<head>
    <!-- 网页头部分布视图 -->
    @Html.Partial("~/Views/Shared/HouTai_Header.cshtml")
    <meta name="viewport" content="width=device-width" />
    <title>Exam</title>
    <script src="~/Content/ckeditor/ckeditor.js"></script>
    <link href="~/Content/css/bootstrap.css" rel="stylesheet" />
    <link href="~/Content/css/common.css" rel="stylesheet" />
    <link href="~/Content/css/font-awesome.min.css" rel="stylesheet" />
    <link href="~/Content/css/es-icon.css" rel="stylesheet" />
    <link href="~/Content/css/main.css" rel="stylesheet" />
    <script src="~/Content/js/jquery.min.js"></script>
    <script>
        $(function () {
            $("#a1").hide();
        })
            function re() {
                $("#a1").show();
            }
            function ew() {
                $("#a1").hide();
            }

            alert("1")
            $("#a1").hide();
            if ($("#nandu").attr("checked", true)) {
                $("#a1").show();
            }
            else if ($("#nandu").attr("checked", false)) {
                $("#a1").hide();
            }

            $("#login").click(function () {
                $("#login_form").show("slow");
            });
            $("#close_form").click(function () {
                $("#login_form").hide("slow");
            });
    </script>
</head>
<body>
    <!-- 网页导航菜单分布视图 -->
    @Html.Partial("~/Views/Shared/HouTai_DaoHang.cshtml")
    <!-- 网页左侧菜单分布视图 -->
    @Html.Partial("~/Views/Shared/CouseCreateManage_Menu_Left.cshtml")
    <div class="col-md-9">
        <div class="panel panel-default panel-col test-creator">
            <div class="panel-heading clearfix">创建试卷</div>
            <div class="panel-body">
                <ol class="breadcrumb">
                    <li><a href="/course/157/manage/testpaper">试卷管理</a></li>
                    <li class="active">创建试卷</li>
                </ol>
                <form data-widget-cid="widget-0" novalidate="novalidate" id="testpaper-form" class="form-horizontal" method="post" action="/Course/Examsc" data-auto-submit="false" data-have-base-fields="true" data-have-build-fields="true" data-course-id="157">
                    @*试卷名称*@
                    <div class="form-group">
                        <div class="col-md-2 control-label"><label for="testpaper-name-field">试卷名称</label></div>
                        <div class="col-md-8 controls">
                            <input data-explain="" data-widget-cid="widget-2" class="form-control" value="" name="ExamName" id="testpaper-name-field">
                            <div class="help-block" style="display:none;"></div>
                        </div>
                    </div>
                    @*试题卷说明*@
                    <div class="form-group">
                        <div class="col-md-2 control-label"><label for="testpaper-description-field">试卷说明</label></div>
                        <div class="col-md-8 controls">
                            <textarea class="form-control" name="Description"></textarea>
                        </div>
                    </div>
                    @*时间限制*@
                    <div class="form-group">
                        <div class="col-md-2 control-label"><label for="testpaper-limitedTime-field">时间限制</label></div>
                        <div class="col-md-8 controls">
                            <input data-explain="0分钟，表示无限制" data-widget-cid="widget-4" class="form-control width-input width-input-large" name="LimitedTime" id="testpaper-limitedTime-field" value="0"> 分钟
                            <div class="help-block">0分钟，表示无限制</div>
                        </div>
                    </div>
                    @*生成方式*@
                    <div class="form-group">
                        <div class="col-md-2 control-label">
                            <label for="testpaper-percentage-field">生成方式</label>
                        </div>
                        <div class="col-md-8 controls radios">
                            <div>
                                <label>
                                    <input id="suiji" name="Mode" checked="checked" onclick="ew()" type="radio" value="1" /><label for="suiji">随机数生成</label>&nbsp;&nbsp;
                                    <input id="nandu" name="Mode" type="radio" onclick="re()" value="2" /><label for="nandu">难度</label>
                                </label>
                            </div>
                            <div id="a1">
                                <input name="q" id="jd" type="radio" value="1" /><label for="jd">简单</label>
                                <input name="q" id="zd" type="radio" value="2" /><label for="zd">中等</label>
                                <input name="q" id="kn" type="radio" value="3" /><label for="kn">困难</label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <style>
                            .testpaper-question-option-item {
                                margin-left: -12px;
                                margin-bottom: 5px;
                            }
                        </style>
                        <div class="col-md-2 control-label"><label>题目设置</label></div>

                        <div class="col-md-10 controls" id="testpaper-question-options">

                            @*单选题*@
                            <div class="testpaper-question-option-item">
                                <button type="button" class="btn btn-link testpaper-question-option-item-sort-handler"><span class="glyphicon glyphicon-move"></span></button>
                                <span style="min-width:85px;display:inline-block;_display:inline;">单选题</span>
                                <span class="mlm">题目数量:</span>
                                <input class="form-control width-input width-input-mini input-sm item-number" name="sdxsum" value="0" type="text">/
                                <span class="text-info question-num" type="single_choice">@ViewData["ssum"]</span>
                                <span class="mlm">题目分值:</span>
                                <input class="form-control width-input width-input-mini input-sm item-score" name="d1" value="0" type="text">
                            </div>

                            @*多选题*@
                            <div class="testpaper-question-option-item">
                                <button type="button" class="btn btn-link testpaper-question-option-item-sort-handler"><span class="glyphicon glyphicon-move"></span></button>
                                <span style="min-width:85px;display:inline-block;_display:inline;">多选题</span>
                                <span class="mlm">题目数量:</span>
                                <input class="form-control width-input width-input-mini input-sm item-number" name="ddxsum" value="0" type="text">/
                                <span class="text-info question-num" type="choice">@ViewData["dsum"]</span>
                                <span class="mlm">题目分值:</span>
                                <input class="form-control width-input width-input-mini input-sm item-score" name="d2" value="0" type="text">
                            </div>

                            @*填空题*@
                            <div class="testpaper-question-option-item">
                                <button type="button" class="btn btn-link testpaper-question-option-item-sort-handler"><span class="glyphicon glyphicon-move"></span></button>
                                <span style="min-width:85px;display:inline-block;_display:inline;">填空题</span>
                                <span class="mlm">题目数量:</span>
                                <input class="form-control width-input width-input-mini input-sm item-number" name="gtksum" value="0" type="text">/
                                <span class="text-info question-num" type="fill">@ViewData["gsum"]</span>
                                <span class="mlm">题目分值:</span>
                                <input class="form-control width-input width-input-mini input-sm item-score" name="g1" value="0" type="text">
                            </div>

                            @*判断题*@
                            <div class="testpaper-question-option-item">
                                <button type="button" class="btn btn-link testpaper-question-option-item-sort-handler"><span class="glyphicon glyphicon-move"></span></button>
                                <span style="min-width:85px;display:inline-block;_display:inline;">判断题</span>
                                <span class="mlm">题目数量:</span>
                                <input class="form-control width-input width-input-mini input-sm item-number" name="jpdsum" value="0" type="text">/
                                <span class="text-info question-num" type="determine">@ViewData["jsum"]</span>
                                <span class="mlm">题目分值:</span>
                                <input class="form-control width-input width-input-mini input-sm item-score" name="j1" value="0" type="text">
                            </div>

                            @*问答题*@
                            <div class="testpaper-question-option-item">
                                <button type="button" class="btn btn-link testpaper-question-option-item-sort-handler"><span class="glyphicon glyphicon-move"></span></button>
                                <span style="min-width:85px;display:inline-block;_display:inline;">问答题</span>
                                <span class="mlm">题目数量:</span>
                                <input class="form-control width-input width-input-mini input-sm item-number" name="rwdsum" value="0" type="text">/
                                <span class="text-info question-num" type="essay">@ViewData["rsum"]</span>
                                <span class="mlm">题目分值:</span>
                                <input class="form-control width-input width-input-mini input-sm item-score" name="r1" value="0" type="text">
                            </div>
                        </div>
                    </div>
                    <input name="percentages[simple]" type="hidden">
                    <input name="percentages[normal]" type="hidden">
                    <input name="percentages[difficulty]" type="hidden">
                    <input name="_csrf_token" value="9be19636aaca3zz85965cf2800c767524bac2f3746" type="hidden">
                    <div class="form-group mbm">
                        <div class="col-md-8 col-md-offset-2 controls">
                            <button id="testpaper-create-btn" data-submiting-text="正在提交" type="submit" class="btn btn-primary">保存，下一步</button>
                            <a href="/course/157/manage/testpaper" class="btn btn-link  ">返回</a>
                        </div>      
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
